﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainDriver.DomainModeling.DomainObjects;

namespace AutomotivePricingModel.ValueObjects.MissingValueOptions
{
    public partial class MissingValueOption : EnumDomainObject<MissingValueOptionEnum, MissingValueOption>
    {
        private string m_DisplayName;

        public MissingValueOption()
            : this(MissingValueOptionEnum.Zero)
        { }

        public MissingValueOption(MissingValueOptionEnum bodyStyle)
            : this(bodyStyle, Enum.GetName(typeof(MissingValueOptionEnum), bodyStyle))
        { }

        public MissingValueOption(MissingValueOptionEnum bodyStyle, string displayName)
            : base(bodyStyle)
        {
            m_DisplayName = displayName;
        }

        public string DisplayName
        {
            get { return m_DisplayName; }
            set { m_DisplayName = value; }
        }

        public override void CopyTo(MissingValueOption otherObject)
        {
            base.CopyTo(otherObject);
            if (otherObject.m_DisplayName != m_DisplayName)
            { otherObject.m_DisplayName = m_DisplayName; }
        }

        public override bool Equals(MissingValueOption otherObject)
        {
            if (otherObject.m_DisplayName != m_DisplayName)
            { return false; }
            return base.Equals(otherObject);
        }
    }
}